package com.mybatis03.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author wzm
 * @create 2023-09-26 14:37
 * project_name:javaweb2308
 */
//员工实体
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp01 {
     private Integer id;
     private String username;
     private String password;
     private String name;
     private Short gender;
     private String image;
     private Short job;
     private LocalDate entryDate;//对应数据库date

     //持有一个部门的对象
     private Dept01 dept01;

     private LocalDateTime createTime;//对应数据库datetime
     private LocalDateTime updateTime;
}
